<?php echo $this->Html->script(array('jquery-1.11.2.min'));?>
<br />
<div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 ">

    <?php if ($tourdetail['TourKind']['is_national']){
        echo $this->Html->image('skin-tour-02.jpg',array('class'=>'img-responsive'));
    }else{
        echo $this->Html->image('skin-tour-01.jpg',array('class'=>'img-responsive'));
    }?>


    <?php foreach($tourdetail['Tour'] as $tourdetailElement){?>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-pr-0 col-pt-3 ">

        <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 col-pd-0 ">
            <p class="">
                <?php echo $this->Html->image($tourdetailElement['imageURL'],array(
                    'class'=>'img-responsive img-intro',
                    'url' => array('controller'=>'Mypages','action'=>'tourdetaildisplay'.'/'.$tourdetailElement['id']))); ?>
            </p>
        </div>
        <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 col-pr-0 position-relative">
            <ul class="list-unstyled list-info-intro">
                <li>
                     <span style="color: red; font-size: 25px">
<!--                            --><?php //echo $tourdetailElement['title'] ?>
                            <?php echo $this->Html->link($tourdetailElement['title'], array(
                                'controller'=>'Mypages',
                                'action'=>'tourdetaildisplay'.'/'.$tourdetailElement['id']
                            ));?>
                        </span>
                </li>
                <li>
                    <strong>Ngay khoi hanh:</strong>
                                <span>
                                    <?php if ($tourdetailElement['start_date']){
                                        echo $tourdetailElement['start_date'];
                                    }else{
                                        echo 'Updating...';
                                    }
                                    ?>
                                </span>
                </li>
                <li>
                    <strong>Thời gian:</strong>
                                <span>
                                    <?php if ($tourdetailElement['schedule']){
                                        echo $tourdetailElement['schedule'];
                                    }else{
                                        echo 'Updating...';
                                    }
                                    ?>
                                </span>
                </li>
                <li>
                    <strong>Khách sạn:</strong>
                                <span>
                                   <?php if ($tourdetailElement['hotel_start']){
                                       echo $tourdetailElement['hotel_start'].' sao';
                                   }else{
                                       echo 'Updating...';
                                   }
                                   ?>
                                </span>
                </li>
                <li>
                    <strong>Điểm xuất phát:</strong>
                                <span>
                                  <?php if ($tourdetailElement['start_point']){
                                      echo $tourdetailElement['start_point'];
                                  }else{
                                      echo 'Updating...';
                                  }
                                  ?>
                                </span>
                </li>
                <li>
                    <strong>Phương tiện:</strong>
                                <span>
                                   <?php if ($tourdetailElement['vehicle']){
                                       echo $tourdetailElement['vehicle'];
                                   }else{
                                       echo 'Updating...';
                                   }
                                   ?>
                                </span>
                </li>
                <li>
                    <strong>Giá:</strong>
                                <span>
                                  <?php
                                  echo $this->Number->format($tourdetailElement['price'], array(
                                      'places' => 3,
                                      'before' => ' ',
                                      'escape' => false,
                                      'decimals' => ',',
                                      'thousands' => ','
                                  ));
                                  ?>
                                </span>
                </li>
            </ul>
            <?php
            echo $this->Html->image('hotline-01.png',array('class'=>'hotline-tour img-responsive'));
            ?>
        </div>

    </div>
<?php }?>



<!---->
<!---->
<!--    <table border="1px solid">-->
<!--        --><?php //foreach($tourdetail['Tour'] as $tourdetailElement){?>
<!--            <tr>-->
<!--                <td>-->
<!--                    --><?php //echo $this->Html->image($tourdetailElement['imageURL'],array('class'=>'img-responsive', 'height'=>'200px','width'=>'200px')); ?>
<!--                </td>-->
<!--                <td>-->
<!--                        <span style="color: red; font-size: 25px">-->
<!--                            --><?php //echo $tourdetailElement['title'] ?>
<!--                        </span>-->
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">-->
<!--                            Ngay Khoi Hanh:-->
<!--                        </span>--><?php //echo $tourdetailElement['start_date'] ?>
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">Thoi gian:-->
<!--                        </span>--><?php //echo $tourdetailElement['schedule'] ?>
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">-->
<!--                            Diem xuat phat:-->
<!--                        </span>--><?php //echo $tourdetailElement['start_point'] ?>
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">-->
<!--                            Khach San:-->
<!--                        </span>--><?php //echo $tourdetailElement['hotel_start'] ?>
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">-->
<!--                            Diem xuat phat:-->
<!--                        </span>--><?php //echo $tourdetailElement['vehicle'] ?>
<!--                    <br/>-->
<!--                        <span style="font-weight: bold">-->
<!--                            Gia:-->
<!--                        </span>-->
<!--                    --><?php
//                    echo $this->Number->format($tourdetailElement['price'], array(
//                        'places' => 3,
//                        'before' => ' ',
//                        'escape' => false,
//                        'decimals' => ',',
//                        'thousands' => ','
//                    ));
//                    ?>
<!--                    <br/>-->
<!--                    <a href="#" style="float: right">Chi Tiet</a>-->
<!--                </td>-->
<!--            </tr>-->
<!--        --><?php //}?>
<!--    </table>-->
</div>


